/*
 * Author: Patrick
 * Date: Nov 11, 2013
 */

$(function() {
    var errorMsgContainer = $("div[id*=errorMessageContainer]");
    var errorMsg = $("span[id*=errorMessage]");
    var $creditHours = $("input[id*=inputCreditHours]").val();
    var $creditHoursDropdown = $("select[id*=inputCreditHours]");
    

    if (errorMsg.text())
        errorMsgContainer.show();

    if ($creditHours)
        $creditHoursDropdown.val($creditHours);


});

